from django.db import models

# Create your models here.

class User(models.Model):
    username = models.CharField(max_length=32)
    user_level = models.IntegerField()
    score = models.IntegerField()
    class Meta:
        db_table = 'user'

class News(models.Model):
    title = models.CharField(max_length=64)
    content = models.CharField(max_length=256)
    class Meta:
        db_table = 'news'

class Comment(models.Model):
    comment = models.CharField(max_length=45)
    class Meta:
        db_table = 'comment'